home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / makefile < prev    next >
Makefile  |  1994-06-03  |  1KB  |  48 lines

  1. # This makefile is used for installing the dos binary distribution of
  2. #  GNAT.  The installation script resulting from configuration consists
  3. #  of make commands using this makefile.  The options allowed by setting
  4. #  the directories by hand are greater than those allowed in the
  5. #  configuration script.
  6.  
  7. prefix    = \djgpp
  8. bindir    = $(prefix)\bin
  9. libsubdir = $(prefix)\lib
  10. adaobjdir = $(libsubdir)\adalib
  11. adaincdir = $(prefix)\adainc
  12.  
  13. CFLAGS= -g
  14. .SUFFIXES: .ada .adb .ads
  15.  
  16. ADA_CC=gcc
  17. ADAFLAGS= -gnatg -gnata
  18. ALL_ADAFLAGS= $(CFLAGS) $(ADAFLAGS)
  19.  
  20. .adb.o:
  21.     $(ADA_CC) -c $(ALL_ADAFLAGS) $<
  22. .ads.o:
  23.     $(ADA_CC) -c $(ALL_ADAFLAGS) $<
  24.  
  25. ins-basic: makedirs
  26.     copy specs    $(libsubdir)\specs
  27.     copy as.exe   $(bindir)\as.exe
  28.  
  29. ins-gnatstuff: makedirs
  30.     copy xgcc.exe      $(bindir)\gcc.exe
  31.     copy gnatbind.exe  $(bindir)\gnatbind.exe
  32.     copy gnatbl.exe    $(bindir)\gnatbl.exe
  33.     copy gnatf.exe     $(bindir)\gnatf.exe
  34.     copy gkrunch.exe   $(bindir)\gkrunch.exe
  35.     copy gnatchop.exe  $(bindir)\gnatchop.exe
  36.     copy gsplit.bat    $(bindir)\gsplit.bat
  37.     copy gnat1.exe     $(bindir)\gnat1.exe
  38.     copy libpthreads.a $(libsubdir)\libpthreads.a
  39.     copy libgnat.a     $(libsubdir)\libgnat.a
  40.  
  41. makedirs:
  42.     mkdir $(prefix)
  43.     mkdir $(bindir)
  44.     mkdir $(libsubdir)
  45.     mkdir $(adaobjdir)
  46.     mkdir $(adaincdir)
  47.  
  48.